﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OverRelaxation.aspx.cs"
    Inherits="ATW.MT.SellManage.OverRelaxation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>人工处理报价</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <script type="text/javascript" src="../Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../Scripts/jsharp.popupdiv.js"></script>
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>
    <link rel="Stylesheet" href="../Styles/css.css" />
    <base target="_self" />
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 95%; text-align: center">
        <asp:HiddenField ID="hdfReqID" runat="server" />
        <asp:Repeater runat="server" ID="rpList" OnItemDataBound="rpList_ItemDataBound">
            <HeaderTemplate>
                <table width="100%" border="0" class="queryResultTable" cellpadding="0" cellspacing="0">
                    <tr>
                        <th>
                            产品名称
                        </th>
                        <th>
                            公/英制
                        </th>
                        <th>
                            铸/锻件
                        </th>
                        <th>
                            阀体
                        </th>
                        <th>
                            阀瓣
                        </th>
                        <th>
                            阀座
                        </th>
                        <th>
                            填料
                        </th>
                        <th>
                            阀杆
                        </th>
                        <th>
                            压力等级
                        </th>
                        <th>
                            设计标准
                        </th>
                        <th>
                            法兰标准
                        </th>
                        <th>
                            结构标准
                        </th>
                        <th>
                            密封标准
                        </th>
                        <th>
                            设计温度
                        </th>
                        <th>
                            连接方式
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <asp:HiddenField runat="server" ID="hdfOid" Value='<%#Eval("OID").ToString()%>' />
                    <td>
                        <%#Eval("ProductionDesc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("args03").ToString()%>
                    </td>
                    <td>
                        <%#Eval("args08").ToString()%>
                    </td>
                    <td>
                        <%#Eval("MID_BDesc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("MID_IDesc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("args02Desc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("args09Desc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("MID_SDesc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("PressureIDDesc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("args04Desc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("args05Desc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("args06Desc").ToString()%>
                    </td>
                    <td>
                        <%#Eval("LevelType").ToString()+""+Eval("Level").ToString()%>
                    </td>
                    <td>
                        <%#Eval("args01").ToString()%>
                    </td>
                    <td>
                        <%#Eval("ConnDesc").ToString()%>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td colspan="14" style="padding: 0px">
                        <table border="0" cellpadding="0" cellspacing="0" style="margin: 0px" class="queryResultTable"
                            width="100%">
                            <tr>
                                <th width="10%">
                                    口径
                                </th>
                                <th width="10%">
                                    询价数量
                                </th>
                                <th width="10%">
                                    询价交期(天)
                                </th>
                                <th width="7%">
                                    状态
                                </th>
                                <th width="10%">
                                    报价人
                                </th>
                                <th width="10%">
                                    原始报价
                                </th>
                                <th width="10%">
                                    最终报价
                                </th>
                                <th width="10%">
                                    交期(天)
                                </th>
                                <th width="8%">
                                    状态
                                </th>
                                <th width="15%">
                                    操作
                                </th>
                            </tr>
                            <asp:Repeater ID="rpSub" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%#Eval("SIDDesc").ToString()%>
                                        </td>
                                        <td>
                                            <%#Eval("Query_num").ToString()%>
                                        </td>
                                        <td>
                                            <%#Eval("deadLine").ToString()%>
                                        </td>
                                        <td>
                                            <%#Eval("eventType").ToString()=="1"?"无报价":
                                                Eval("eventType").ToString()=="2"?"有报价":
                                                 Eval("eventType").ToString()=="0"?"正常":"未知"%>
                                        </td>
                                        <td>
                                            <%#Eval("ResPeople").ToString()%>
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblPrice" Text=' <%#Eval("orignPrice").ToString()%>'></asp:Label>
                                            <asp:TextBox runat="server" ID="txtPrice" Visible="false"></asp:TextBox>
                                        </td>
                                        <td>
                                            <%#Eval("finla_price").ToString()%>
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblTime" Text='<%#Eval("orignTime").ToString()%>'></asp:Label>
                                            <asp:TextBox runat="server" ID="txtTime" Visible="false"></asp:TextBox>
                                        </td>
                                        <td>
                                            <%#Eval("isFinished").ToString()%>
                                        </td>
                                        <td>
                                            <asp:LinkButton runat="server" ID="lbnOverRelax" OnClick="lbnOverRelax_Click" Visible='<%#Eval("eventType").ToString()=="0"?false:true %>'>手动报价</asp:LinkButton>
                                            <asp:LinkButton runat="server" ID="lbnSave" OnClick="lbnSave_Click" CommandArgument='<%#Eval("ReqDetailID").ToString()%>'
                                                Visible="false">保存报价</asp:LinkButton>
                                            <asp:LinkButton runat="server" CommandArgument='<%#Eval("ReqDetailID").ToString()%>'
                                                ID="lbnAllow" OnClick="lbnAllow_Click" Visible='<%#Eval("eventType").ToString()=="2"?true:false%>'> 许可报价</asp:LinkButton>
                                            <asp:HiddenField runat="server" ID="hdfReqDetailID" Value='<%#Eval("ResDetailID").ToString()%>' />
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <input type="button" value="关闭" class="queryButton" onclick="window.close()" />
        <asp:LinkButton runat="server" ID="lbnSubmit" OnClick="lbnSubmit_Click" CssClass="queryButton">提交</asp:LinkButton>
        <div id="divMsg" style="display: none;">
            <div class="tc_header">
                <h2>
                    提示</h2>
                <a id="hideMsg">
                    <img src="../images/chacha.png" width="13" height="13"></a>
            </div>
            <div class="tc_content">
                <div class="tanchu03" style="">
                    <p id="msgContent">
                    </p>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
